package com.zllkj.mm.adapter

import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.zllkj.mm.R
import com.zllkj.mm.model.entity.FanFollowListVo
import com.zllkj.mm.model.entity.FanFollowListVoRecord
import com.zllkj.mm.module.goods.vm.ItemCollectionsVM
import com.zllkj.mm.module.shopping.vm.ItemFriendListVM
import com.zllkj.mm.util.common.PictureLoadUtil

class FollowListAdapter(layoutResId: Int, data: List<FanFollowListVoRecord?>?) :
        BaseQuickAdapter<FanFollowListVoRecord, BaseViewHolder>(layoutResId, data) {
    override fun convert(baseViewHolder: BaseViewHolder, vm: FanFollowListVoRecord) {
        baseViewHolder.getView<AppCompatTextView>(R.id.tv_fans_user_list_name).text = vm.nikeName
        PictureLoadUtil.loadPic(baseViewHolder.getView<AppCompatImageView>(R.id.iv_user_logo),vm.userLogo)
    }
}